package models

import (
	"time"

	"gorm.io/gorm"
)

type Code struct {
	ID        uint           `json:"id" gorm:"primaryKey"`
	Title     string         `json:"title"`
	Code      string         `json:"code" gorm:"notNull"`
	Language  string         `json:"language" gorm:"notNull"`
	CreateAt  time.Time      `json:"created"`
	UpdatedAt time.Time      `json:"updated`
	DeletedAt gorm.DeletedAt `json:"deleted" gorm:"index"`
}
